#include <stdio.h>
#include <unistd.h>
#include <stdbool.h>
#include <signal.h>
void Print(int sig)
{
    printf("Print! I got a signal: %d\n",sig);
    signal(SIGINT,SIG_DFL);
}
int main()
{
    signal(SIGINT,Print);
    while(true)
    {
        printf("Hello World\n");
        sleep(1);
    }
    return 0;
}
